/*public class Test {
    static boolean Paddy;
    public static void main(String args[]){
        System.out.println(Paddy);

        *//*String s;
        int[] arr;
        System.out.println(arr);*//*

        //System.out.println("s="+s);
    }
}*/

class Student{
    public String name;
    public int age;
    public String stuNum;

    public void sleep(){
        System.out.println(name + "睡觉");
    }

    public void haveClass(){
        System.out.println(name + "上课");
    }

    public void doHomework(){
        System.out.println(name + "做作业");
    }
}

class Date{
    public int year;
    public int month;
    public int day;

    public void initDate1(int year, int month, int day){
        this.year = year;
        this.month = month;
        this.day = day;
    }

    public void initDate2(int y, int m, int d){
        year = y;
        month = m;
        day = d;
    }

    public void printDate(){
        System.out.println(year + "年 " + month + "月 " + day + "日 ");
    }
}

public class Test{
    public static void main(String[] args) {
        Date d1 = new Date();
        Date d2 = new Date();
        Date d3 = new Date();

        d1.initDate1(2024,5,13);
        d1.printDate();
        System.out.println("=====================");
        d1.initDate2(2024,5,13);
        d1.printDate();

    }
}

/*
public class Test{
    public static void main(String[] args) {
        Student student1 = new Student();
        student1.name = "张三";
        student1.age = 10;
        student1.stuNum = "32";
        student1.sleep();
        student1.haveClass();
        student1.doHomework();
    }
}*/
